package com.example.demo.util.dto;

import lombok.Getter;

/**
 *
 * 响应数据实体
 *
 * @param <T>
 */
@Getter
public class Data<T> {

    private  T data;

    private  String message;

    private String code;

    public Data(T data,String message){

        this.data = data;
        this.message = message;
    }

    public Data(T data,String message,String code){

        this.data = data;
        this.message = message;
        this.code = code;
    }

}
